<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>

            <!-- Be sure to leave the brand out there if you want it shown -->
            <a class="brand" href="#">ASR Market Ventures Private Limited <small></small></a>

            <div class="nav-collapse">

                <?php
                if (!Yii::app()->user->isGuest) {
                    $this->widget('zii.widgets.CMenu', array(
                        'htmlOptions' => array('class' => 'pull-right nav'),
                        'submenuHtmlOptions' => array('class' => 'dropdown-menu'),
                        'itemCssClass' => 'item-test',
                        'encodeLabel' => false,
                        'items' => array(
                            array('label' => '<i class="icon icon-home"></i>Dashboard', 'url' => array('/site/index')),
                            array('label' => 'My Account', 'url' => array('/backendUser/myAccount')),
                            array('label' => 'Manage Users <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown"),
                                'items' => array(
                                    array('label' => 'Manage Backend Users ', 'url' => array('/backendUser/admin')),
                                    array('label' => 'Manage Site Users ', 'url' => array('/users/admin/')),
                                    array('label' => 'Site user Permission', 'url' => array('/rights/assignment')),
                                    array('label' => 'My Invoices', 'url' => '#'),
                                    array('label' => 'My Queries', 'url' => array('/makeQuery/classCoursequery/')),
                                    array('label' => 'My Inbox', 'url' => array('/mailConversation/inbox/')),
                            )),
                            array('label' => 'Manage Site <span class="caret"></span>', 'url' => '#', 'itemOptions' => array('class' => 'dropdown', 'tabindex' => "-1"), 'linkOptions' => array('class' => 'dropdown-toggle', 'data-toggle' => "dropdown"),
                                'items' => array(
                                    array('label' => 'Manage Class ', 'url' => array('/classes/admin/')),
                                    array('label' => 'Manage Course ', 'url' => array('/courses/admin/')),
                                    array('label' => 'Manage Category ', 'url' => array('/category/admin/')),
                                    array('label' => 'Manage  tag ', 'url' => array('/classCourseTags/admin/')),
                                    array('label' => 'Manage Promotion ', 'url' => array('/promotion/admin/')),
                                    array('label' => 'Manage Coupons ', 'url' => array('/coupons/admin/')),
                                    array('label' => 'Manage Email Template ', 'url' => array('/emailTemplate/admin/')),
                                    array('label' => 'Manage Site Inquiry ', 'url' => array('/contactus/admin/')),
                                    array('label' => 'Manage City ', 'url' => array('/city/admin/')),
                                    array('label' => 'Manage Locality ', 'url' => array('/localityName/admin/')),
                                    //array('label' => 'Manage Country ', 'url' => array('/country/admin/')),
                                    array('label' => 'Manage Target Audience ', 'url' => array('/targetAudience/admin/')),
                                    array('label' => 'Manage Class Type ', 'url' => array('/classType/admin/')),
                                    array('label' => 'Manage Faq ', 'url' => array('/faq/admin/')),
                                    array('label' => 'Manage Team ', 'url' => array('/team/admin/')),
                            )),
                            array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                            array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest),
                        ),
                    ));
                } else {

                    $this->widget('zii.widgets.CMenu', array(
                        'htmlOptions' => array('class' => 'pull-right nav'),
                        'submenuHtmlOptions' => array('class' => 'dropdown-menu'),
                        'itemCssClass' => 'item-test',
                        'encodeLabel' => false,
                        'items' => array(
                            array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                        ),
                    ));
                }
                ?>




            </div>
        </div>
    </div>
</div>

<?php
if (!Yii::app()->user->isGuest) {
    ?>
    <div class="subnav navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">

                <div class="style-switcher pull-left">
                    <a href="javascript:chooseStyle('none', 60)" checked="checked"><span class="style" style="background-color:#0088CC;"></span></a>
                    <a href="javascript:chooseStyle('style2', 60)"><span class="style" style="background-color:#7c5706;"></span></a>
                    <a href="javascript:chooseStyle('style3', 60)"><span class="style" style="background-color:#468847;"></span></a>
                    <a href="javascript:chooseStyle('style4', 60)"><span class="style" style="background-color:#4e4e4e;"></span></a>
                    <a href="javascript:chooseStyle('style5', 60)"><span class="style" style="background-color:#d85515;"></span></a>
                    <a href="javascript:chooseStyle('style6', 60)"><span class="style" style="background-color:#a00a69;"></span></a>
                    <a href="javascript:chooseStyle('style7', 60)"><span class="style" style="background-color:#a30c22;"></span></a>
                </div>

            </div><!-- container -->
        </div><!-- navbar-inner -->
    </div><!-- subnav -->
<?php } ?>
